package com.funtl.framework.java.common.service;

import java.util.List;

import com.funtl.framework.java.abstracts.AbstractEntity;
import com.funtl.framework.java.exception.ServiceException;

public interface ICommonService<T extends AbstractEntity> {
	public T get(T entity) throws ServiceException;
	public Long getCount(T entity) throws ServiceException;
	public List<T> getList(T entity) throws ServiceException;
	public String insert(T entity) throws ServiceException;
	public String delete(T entity) throws ServiceException;
	public String update(T entity) throws ServiceException;
	public List<T> page(T entity) throws ServiceException;
}
